//
//  HTColorHelper.h
//  meetmec2
//
//  Created by HuaTan on 15/8/18.
//  Copyright (c) 2015年 hejin.zhu. All rights reserved.
//

#ifndef meetmec2_HTColorHelper_h
#define meetmec2_HTColorHelper_h

#pragma mark - 颜色处理
//----------------------颜色类---------------------------
// rgb颜色转换（16进制->10进制）
#define ColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

//带有RGBA的颜色设置
#define COLOR(R, G, B, A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]

// 获取RGB颜色
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]

#define RGB(r,g,b) RGBA(r,g,b,1.0f)



//导航栏背景颜色
#define NAVIBAR_BACK_COLOR      COLOR(245.0f, 245.0f, 245.0f, 1.0)
//导航栏填充颜色
#define NAVIBAR_TINT_COLOR      COLOR(150.0f, 150.0f, 150.0f, 1.0)
//导航栏字体颜色
#define NAVIBAR_TEXT_COLOR      ColorFromHex(0x333333)


//主界面背景颜色
#define MAIN_BACK_COLOR         RGB(244.0f,245.0f,246.0f)
//主界面分割线颜色
#define SEPARATA_LINE_COLOR     RGB(223,223,223)


//底部导航背景颜色
#define TABBAR_BACK_COLOR       COLOR(245.0f, 245.0f, 245.0f, 1.0)
//底部导航标题颜色
#define TABBAR_TEXT_COLOR       RGB(255.0f,0,0)


#endif
